package com.sbtr.business.classify.service;

import com.sbtr.business.classify.entity.AlgoParamVersion;
import com.sbtr.business.classify.dto.AlgoParamVersionDto;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sbtr.business.classify.entity.AlgoTemplateParam;
import org.springframework.stereotype.Service;
import com.sbtr.common.PageDto;

import java.io.Serializable;
import java.util.List;

/**
 * 轻量化算法参数版本(高质量芯片项目) Service接口
 *
 * @author maojianping
 * @since  2023-04-17
 */
public interface AlgoParamVersionService extends IService<AlgoParamVersion> {

     PageDto<AlgoParamVersion> pageList(AlgoParamVersionDto AlgoParamVersionDto);

     AlgoParamVersion copyNewVersion(String username, AlgoParamVersion algoParamVersion, List<AlgoTemplateParam> paramList);

     /**
      * @param templateId：所属算法模板ID
      * @return
      */
     List<AlgoParamVersion> queryList(Long templateId);

     /**
      * 重写：删除算法参数版本同时删除关联参数集合
      * @param id：算法参数版本ID
      * @return
      */
     boolean removeById(Serializable id);
}
